// 演示 lodash
// first / last / toUpper / reverse / each / includes / find / findIndex
const _ = require('loadsh')

// const array = ['zhangsan', 'lisi', 'wangwu', 'zhaoliu']

// console.log(_.first(array))
// console.log(_.last(array))

// console.log(_.toUpper(_.first(array)))

// // 不纯函数
// console.log(_.reverse(array))

// const r =_.each(array, (item, index) => {
//   console.log(item, index)
// })
// console.log(r)

// const i = _.includes(array)

// // _.includes(collection, value, fromIndex)

// console.log(i)


// var i = _.defer(function(stamp) {
//   console.log(_.now() - stamp);
// }, _.now());

// console.log(_.now())

console.log(_.size({a: 1}))

